package com.wocai.jrt.orgadmin.project.bean;

import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.Map.Entry;

public class OperaterUtils {
	//1录入中,2申请立项,3立项风控审核,4尽调中,5初审中,6过初审,7复审中,8过复审,9终审中,10拟投资,11已投资,12已退出,100已否决
	//1投资部，2尽调小组，3项目初审委员会，4项目决策委员会，5法律合规部，6项目最终审批人，7资金运用决策委员会，8资金运用最终审批人
	private static Map<String, String> map = new HashMap<String, String>();
	static {
		map.put("11", "<a class=\"upload fa fa-upload fa-lg\" title=\"提交审批\" href=\"javascript:;\">");
		map.put("t11", "<a class=\"upload fa fa-upload fa-lg\" title=\"提交审批\" href=\"javascript:;\">");
		map.put("t12", "<a class=\"approve fa fa-gavel fa-lg\" title=\"审核\" href=\"javascript:;\">&nbsp;&nbsp;&nbsp;<a class=\"group fa fa-group fa-lg\" title=\"查看尽调小组\" href=\"javascript:;\">");
		map.put("t1100", "<a class=\"restart fa fa-rotate-right fa-lg\" title=\"重启立项\" href=\"javascript:;\">&nbsp;&nbsp;&nbsp;<a class=\"group fa fa-group fa-lg\" title=\"查看尽调小组\" href=\"javascript:;\">");
		map.put("53", "<a class=\"windControl fa fa-gavel fa-lg\" title=\"审批\" href=\"javascript:;\">");
		map.put("t53", "<a class=\"windControl fa fa-gavel fa-lg\" title=\"审批\" href=\"javascript:;\">");
		map.put("24", "<a class=\"report fa fa-file-text-o fa-lg\" title=\"上传尽调文件\" href=\"javascript:;\">");
		map.put("t24", "<a class=\"report fa fa-file-text-o fa-lg\" title=\"上传尽调文件\" href=\"javascript:;\">&nbsp;&nbsp;&nbsp;<a class=\"comfirm fa fa-check-square fa-lg\" title=\"确认尽调完成\" href=\"javascript:;\">");
		map.put("35", "<a class=\"vote fa fa-hand-o-up fa-lg\" title=\"个人表决\" href=\"javascript:;\">");
		map.put("t35", "<a class=\"vote fa fa-hand-o-up fa-lg\" title=\"个人表决\" href=\"javascript:;\">&nbsp;&nbsp;&nbsp;<a class=\"firstTrial fa fa-leanpub fa-lg\" title=\"初审结果\" href=\"javascript:;\">");
		map.put("t35o", "<a class=\"firstTrial fa fa-leanpub fa-lg\" title=\"初审结果\" href=\"javascript:;\">");
		map.put("t36", "<a class=\"recheck fa fa-paste fa-lg\" title=\"提交复审\" href=\"javascript:;\">");
		map.put("47", "<a class=\"decision fa fa-hand-o-up fa-lg\" title=\"个人决议\" href=\"javascript:;\">");
		map.put("t47", "<a class=\"decision fa fa-hand-o-up fa-lg\" title=\"个人决议\" href=\"javascript:;\">&nbsp;&nbsp;&nbsp;<a class=\"reexamine fa fa-leanpub fa-lg\" title=\"复审结果\" href=\"javascript:;\">");
		map.put("t47o", "<a class=\"reexamine fa fa-leanpub fa-lg\" title=\"复审结果\" href=\"javascript:;\">");
		map.put("t48", "<a class=\"submitFinal fa fa-paste fa-lg\" title=\"提交终审\" href=\"javascript:;\">");
		map.put("t69", "<a class=\"lastInstance fa fa-bank fa-lg\" title=\"终审审批\" href=\"javascript:;\">");
	}

	public static String get(String key) {
		return map.get(key);
	}
	
	public static Map<String, String> getMap() {
		return map;
	}
	
	public static Map<String, Integer> getMapStr(){
		Iterator<?> maps = map.entrySet().iterator();
		Map<String, Integer> mapsMap = new HashMap<String, Integer>();
		while(maps.hasNext()){
			Entry<?, ?> entry = (Entry<?, ?>)maps.next();
			mapsMap.put(entry.getValue().toString(), 0);
		}
		return mapsMap;
	}
}
